Clean up parseConfig