This insane hash construct is needed to deal with the fact the Debian interfaces file format is insane. It might be worth revisiting to see if this is necessary for this file.