Remove references to activerecord