Remove some duplication in LearnRails::Accessors