remove deprecated `resource` method