Move MDBuilder's methods out of line.

Making them inline was a historical accident, they're neither hot nor
templated.