Use safe_constantize when scanning models