Fix analyzer warnings from initializer methods.