Refactored Plan#to_dcm couch attribute methods

This should reduce code duplication.