Removed ThreadLocals class and its references, since it is no longer needed.