Issue #3022399 by andypost, YurkinPark, Berdir: Move action_views_form_substitutions() out of actions module