[library] Remove unnecessary initializers from constructor