Extract dsl import functionality to a separate class the will be injected with the necessary dependencies.