remove commented function
use value_for_platform_family instead of case statement