Revert "Major refactor: switch to native fragments."

This reverts commit 2cce8c8cb3a85921975dad23b396f68aa0e7a889.