Refactor Resources to use the builder pattern.