Refactor exception logic for .to_roman method