Collect the initialization of adapters into a separate method.