refactor parts of PositionsDepth, filter for QC4,5,6