refactor(filesource): replace repetitive #[cfg()] usages with a new mod
#3833
+100
−109
#[cfg()] usages with a new mod
#3833