Refactor FileSystem to use Symfony FileSystem Component