Move non-trivial methods out of line to avoid code-size bloat.