Use constants in manually defined attributes