Issue/6101 remove namespace permission constants

@bantu @DeepDiver1975 

If we do not want to replace the usages, we can remove the second commit.
But I think we can do it