Move inlined definitions before they are used.

Otherwise they do not get a chance to get inlined.