Refactor last cookies