Revert "Use a custom function to ensure we support virtual/exported resources"

This reverts commit 8a5d05ce9aff7ed2b5af6ae205e8c765056f4156.