Moved configuration to separate class

In order to maintain single responsibility of each class.