Move AutoConfigParser logic to its own file