Refactored DecorationView to allow additional unit tests.