Strip out most active_record specific bits