Set node dimensions from annotation
Moved utility functions into new factory