This is called once, can't it just be inlined?