Automated Refactoring of Software using Version History and a Code Element Recentness Measure Topics: Software Patterns and Refactoring In Proceedings of the 13th International Conference on Evaluation of Novel Approaches to Software Engineering ENASE - Volume 1, 455-462, 2018 , Funchal, Madeira, Portugal