Bad code improvement in Executor Service section