Pull out the before action controller event into it's own method