Clean up some things and register prefixes in the helper.