Converting fragments into static public instances