Consolidate GClosure declaration and definition.