Have you read what the court order to apple says? Actually says? I have read the actual court order.
It says:
1) It will bypass or disable the auto-erase function.
2) it will enable the FBI to submit passcodes to the subject device for testing electronically via the physical device port, bluetooth, wifi, or other protocol available.
3) it will not purposefully introduce any additional delay between passcodes attempts beyond what is incurred by hardware
4) they are to provide a signed iPhone software file that can be loaded onto the device and run from RAM without modifying the iOS installation on the actual phone, the user data, or system partitions on the device's flash memory
Source: http://www.ndaa.org/pdf/SB-Sho...
So yes...they are required to allow for electronic entry of the passcode. And they have to write the software in a way that hasn't been done before... without touching the flash memory on the iPhone. You can not run iOS on the phone "from RAM".
This is absolutely a new piece of software that they will likely have to start with. Much more complicated than just "removing a few lines of code".