Cleanup `getInlinees`.
Still build inlined functions in case others want to use them separately.