Refactoring submissions to follow rails good practices