And can't we add some constants in the DataSerializerHook:

e.g. 
F_ID_OFFSET_WEBMODULE = -1000
F_ID_OFFSET_CLIENT = -500;

Etc.. This is better than those magic numbers