Instead of the custom code used in the dev version of this module, I need to rewrite it to use the new file replace functionality in File Entity once this patch gets commited. #1123570: Replace file while retaining field metadata