chore(tagging compiler): Refactor the codes