moves magic method definitions to Definitions.scala