remove some old/unused code
remove old code from the build_limited_circle_subquery method