Optionally hide routes and fields based on user-provided callable