Mock file system when testing Factory class.
Remove magic get method from Request class.