At check in state your preference. Either to take it off at MAD or check in through to final destination.
Unless there is something in the system on the day preventing you checking all the way through then I would personally select that option.
There will of course be no issue reclaiming it at MAD if you prefer.