Pull out common code from acitivity command query and current_activity command query
Pull out common code from acitivity command query and current_activity command query

maddox/harmony-api,maddox/harmony-api,maddox/harmony-api