Ah, P. alleni, no worries then. They breed and berry under almost all conditions. ^_^
You can do either, which ever works best for you. You just don't want to move females that are already berried, then it actually is rather stressful for them (and if they tail-flick, you can lose eggs). But before they've extracted any eggs, it doesn't really matter. If you feel that she's very comfortable in her current tank, you could move the male instead, but it's really up to you. There's no negative impact either way at this point.
But a random thought, whatever ends up being the larger tank (if you have different sized tanks), is where the female should go. When her offspring hatch you're going to need to separate her from them (as she will eat them readily, mmm children snack) and provide the offspring with a large environment to hide and avoid each other as they grow (limiting cannibalism). And it will be easier to catch and remove her than the offspring, so it'd be like already having them in a larger tank. Rather than catching all of them and moving them away to a new tank.