Seol mar théacs é seo: On the formation of single and binary helium-rich sdO stars