Refactor resource internally to a value object