Removed code duplication on UserAction model

Hey,
Removed code duplication, this should also improve code climate rating