Canonical Hamiltonian for an extended test body in curved spacetime: To quadratic order in spin | Synapse