Move some internal DI for better improvement.

Signed-off-by: crynobone <crynobone@gmail.com>