public static function buildOperations(SharingInterface $sharing)
    {
        $operations = [];

        foreach ($sharing->getPermissions() as $permission) {
            $operations[] = $permission->getOperation();
        }

        return $operations;
    }