Move layout_is_paired to a different spot