Move mh_common to p2c_rails_common