Removed duplication of RailsEngine and Railtie code.