Config parsing moved to its own module