Functional Decomposition in 5G Networks