lldp: Apply OOPS for more cleaner code