Action registration abstracted to factory class.