refactor: base colorize method in Diff class