Remove dead code and debugging logs.