Remove duplication in LearnRails::Accessors

Issue described here: https://codeclimate.com/github/pjc/learn_rails/LearnRails::Accessors?from_sha=03b3b953&to_sha=28b73877