So this was broken into methods. But it was more confusing when broken into methods ( @jlsherrill  thought so too.)  So input here is katello constructs like "repo, rules" and the output is pulp clauses. (pulp_content_clauses are actual pulp mongo clauses. Just splitting em didnot help at all..)