Move everything that is policy, requires access to a DB or is generally in the domain of the MSC to vty_interface_layer3.c.