refactor(hoodie): proper closure and dry code