Moved metadata component and artifact types to proper modules.

+review REVIEW-5282