Move component flag setting to the registration function