Issue #2465865 by martin107, joachim: Updated FlagService::flag() and ::unflag() to use objects to discourage use of IDs.