Replace literal constant by function for easier maintenance