api: cleanup bpyramid