Let us assume that Science has discovered how to keep a brain alive outside the body, that mind-machine interfaces are advanced enough to connect the CNS to electronic hardware and communicate meaningfully and that, in this carefully controlled environment it is possible to keep the brain eternally* young by injecting younger cells manufactured in a machine nearby and that these cells are vetted for cancer (so no brain cancer).
This technology will be used by future humans to build cybernetic bodies (not powered by nuclear energy as I discovered in an earlier question I asked) that, as long they are powered and fed with organic matter, will last a long time and, with such immortality they will be free to plan long term, like STL expansion, improved science and technology with scientists and technicians living dozens of thousands of years, etc.
But they are humans, they want to stay humans and that means feelings like humans. That means hormones like Testosterone, Estrogen, or the ones produced by the adrenal glands.
So, the question is: what are the best ways to deal with the hormones when your brain is connected to a robotic body and you still want to have human feelings? My first idea is to pack the glands together with the brain, but surely there are better ways.