Refactor partnership and implement full partnership functions

@houndci @cgruppioni @georgetmayorga
Align the parameters of a method call if they span more than one line.