Refactored the conversion from a ParseObject to an IPub