A touch more refactorying on registerAction()