Clean up protected API check