Remove unused elements from pages