You’ve chosen Contentful as your traditional CMS solution. Here's an example of creating a comment for an entry using Contentful's Content Management API.
Old code often has a story to tell. Instead of tearing it down, follow the example in the story of Chesterton's fence and leave code comments as markers.