Move the Relation functor to a separate file.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>