Eliminate Rails dependency