Split Resource class

Small refactor to remove the unused Resource::getFileName on remote resources.