Removed the dependency of UINavigationBar instance.