Issue #3278113 by yas, Xiaohua Guan, kumikoono, baldwinlouie: Refactor Drupal\cloud\Traits\AccessCheckTrait to fix drupal-check errors