Conditionally wrapping legacy class extension so future versions that don't have said class won't break