Extract access denied message to method