Moving ifdef to xml