Revert the changes to the FileEntityResource so it can still be reused with the old factory method, while still fixing the templated constructor issue.
Fix the dart analyzer to only run what is neccessary, and only once.