Separate core_ext and role into their own files.