Remove useless import

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
Reduce technical debt

Avoid duplication of the 'index' String
Remove useless parenthesis
Avoid direct instantiation of static classes
Declare constants
Fix 'breaks' in pipeline processing interruptions
Remove code duplications
Avoid shadowing
Avoid reliance on default encoding (enforce UTF-8)

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>