Removed two redundant constructor arguments on dynamic resource.