Used API utility instead of resty.
Passed key into functions creating meta queries.
Added like query builder functions for major and minor.