DDF-946 - broke the config method into several smaller methods that can be overriden.