Move filepath create to #getStatisticWriter