Do not inherit from EntitySerializer.

Use composition instead for sharing the common code neded by PropertySerializer
and ItemSerializer.