Remove hard coded references to Active Record in railties