Moved permissions related classes to its own package