Removed impl-specific method for getting fragments and added a utility method to get fragments using standard API, along with other minor clean up. (FELIX-2950)