Refactoring and drop support for Rails 3.x