Reorder source code to work around weird -combine issue.