Given that this is only used in one place, can it be inlined instead?