<rev> DRY out the C files

<priv> Move the shared symbols to VISharedFunctions.[h|c]