[CLEANUP] Rename and clean up the cssStyleDefinitionToArray method.