Move prime views method in

Method is needed for https://github.com/dimagi/commcare-hq/pull/382 specifically related to commit https://github.com/dimagi/commcare-hq/commit/da6ed998002894824eab8315977897b65e4847f5