Make restrict_access flatter and more readable.