Refactor go-mode setup.