Externalize logic of "last modified file" to another class