Start refactoring config commands for reuse