Remove unnecessary code because we always pass spec_pattern in allocator