LPS-46842 remove hardcoded values and extract permission checkers