Refactor: Extract methods compile, print