Removes unused variable
Correctly handles allowDefault -> allow_default