Extract shared code (positioning menu) to method