Bug 1082993 - [settings] refactor Developer panel with AMD pattern

add `break` to make sure we can leave this function earlier.