Initial optimized builder that adds only the components used and their dependencies