Remove dependency on Rails