Moved config code under config/ directory