A bit of refactoring of the HDFS interface