Move implicit def to implicit val.

Same solution as in Play Companion.
Change it to pair of `class` and `trait`.