Refacor conf class