Removing railties dependency