Prevent double warning when generating controllers