moving is_active_subscription function to utils

as commented on in https://github.com/dimagi/commcare-hq/pull/2610