Revert "Major refactor: switch to native fragments."

This reverts commit bb71c9d7f2724df8d0fbf3ce061038154ae2ee23.