Generalize component loader.