Set the provider based on the platform_family
Refactor provider determination
Resolve Rubocop spacing complaint