Extract functional spec helpers