Melaragno leaves Thomas for Liberty