Simplifies hstem/vstem conversion logic