outsourced methods for selectivity/cardinality computation into separate class