Decoupling AMF entities into an object-oriented scheme