Spec and Refactor account resource