Allow registration of Actions using a callback that returns an Action instance