Refactor Proof General setup