Move tab fragments into their own Java classes