Even the fact that resolveProps is a JavaScript function does not prevent storing it in a database that does not allow to store code. You can simply store it as an action.