remove unused admin-bar.js and pretify hooks code