Move prime views method in

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