Is there a way to use function syntax in actions?

To use $replace for several fields in one action, see