using copy of six string constants for file extensions everywhere looks like code duplication, why not gather them in one class and delegate all methods that deals with extension to that class?