Hygiene: extract method for when to return 204
Hygiene: extract method for when to return 204

Change-Id: I97a3464f5f9f1eccef2831f6189fa2c4c450846f

wikimedia/mediawiki-services-mobileapps,wikimedia/mediawiki-services-mobileapps,wikimedia/mediawiki-services-mobileapps,wikimedia/mediawiki-services-mobileapps,wikimedia/mediawiki-services-mobileapps,wikimedia/mediawiki-services-mobileapps