This probably shouldn't be in util but in pyramidhook?