Set sbt version
Refactoring: move macros to a separate object
Use context's error method for error messages