EGE/src/ege/: 复用简化重复实现。

Signed-off-by: FrankHB <frankhb1989@gmail.com>