Extract variable for symbol ending position

Signed-off-by: Igor Popov <igor.popov89@gmail.com>