Moved ctrino related code to a separate file.