fix: remove implements from class declarations (#14749)
fix: remove unwanted properties from both replaced and unreplaced nodes (#14744)