DRY up action hook registering