move polyline generalizer into compile unit