Make the transformer a proper extensible module

Change-Id: I6fd88dc390bc467a2879e75518c4095e77f231dc