Replace pseudo-private functions with file-scoped functions