Remove removeChild calls from extractStylesheets