Refactors `propertiesFromHTMLOptions` method