[yafuse]: refactor code.