Get rid of all rails bits that we don't need