Refactor and move IsAllowedXXXAccessCommand to the common directory and
be a part of common factory

Bug: 330215349
Bug: 308009734

Test: atest IsAllowedAdSelectionAccessCommandTest,
IsAllowedAttributionAccessCommandTest, AdServicesShellCommandHandlerTest

Change-Id: If26fed3f85d04b08d560513ed14d7d488f42a4cc
17 files changed