Refactor phantom permisions