Get rid of actionpack dependency