Depth is used for formatting

Move the method from domain to formatting. If a DottedFormatter is written, it
does not take care about depths