Rearrange contents of implementation file.