Add final newline
Make tab helpers more explanatory
Extract duplication in tabs