Revert "Error in removing resource prereps"

This reverts commit a3c6b91a167d8cf4cf76f2fa3ce150461c18d241.