split body of platform block - dry code up - prep for yaml selector (#2102)
split body of platform block - dry code up - prep for yaml selector (#2102)


circleci/frontend,circleci/frontend,circleci/frontend