Applied ports & addapters pattern to in Term Management