Organizing ScalaCompat.
Separate out mapping methods.