Remove duplication in LearnRails::Accessors

See code climate: https://codeclimate.com/github/pjc/learn_rails/LearnRails::Accessors