Cleanup logics thought to be unneeded

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>