Factor out code to grow the file list into a common location.