Simplify toFragment implementation
Merge pull request #79 from jhudson8/simplify-to-fragment

Simplify toFragment implementation