Simplify toFragment implementation