Move main composite creation to method.