Move into headers or to the top of the function body for internal implementation details, in some cases remove duplicate doc-strings.
Move into headers or to the top of the function body for internal implementation details, in some cases remove duplicate doc-strings.