hgrc: move extensions into main