Move trivial functions into the class definition.